package com.mhtool.core.lang;

/**
 * @author yin
 * @date 2021/12/27 17:18
 * @since 8.0.0
 */
public class ClassUtils {
    private ClassUtils(){}
    /**
     * 判断object是否为简单类型
     *
     * @param className 类
     */
    public static boolean isSimpleType(Class<?> className) {
        return className.equals(String.class) ||
                className.equals(Integer.class) ||
                className.equals(Byte.class) ||
                className.equals(Long.class) ||
                className.equals(Double.class) ||
                className.equals(Float.class) ||
                className.equals(Character.class) ||
                className.equals(Short.class) ||
                className.equals(java.util.Date.class) ||
                className.equals(Boolean.class);
    }
}

